package C6_3_FactoryPackage.after;

import C6_3_FactoryPackage.before.AttrDesc;
import C6_3_FactoryPackage.before.DefaultDesc;

import java.util.Date;

/**
 * Desc:&emsp;&ensp;
 *
 * @author 李渊&emsp;liyuan7@yusys.com.cn
 * @version 1.0
 * @date 2022/8/29
 * @since V1.0
 */
public abstract class AttrDesc2 {
    protected AttrDesc2() {
    }
    public static AttrDesc forInteger (String desc, String className) {
        return new DefaultDesc(desc, className, Integer.TYPE);
    }
    public static AttrDesc forDate(String desc, String className) {
        return new DefaultDesc(desc, className, Date.class);
    }
    public static AttrDesc forString(String desc, String className) {
        return new DefaultDesc(desc, className, String.class);
    }
}
